package com.atguigu.yygh.rabbitmq.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: MQConfig
 * Package: com.atguigu.yygh.rabbitmq.config
 *
 * @Date: 2021/8/27 10:53
 * @author: 浪漫
 * @Description:
 */

@Configuration
public class MQConfig {
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}

